package pl.druminski.robinhood.updater.model;

import java.io.File;
import java.util.ArrayList;

/**
 * @author Łukasz Drumiński
 * 
 */
public class Data
{
    public ArrayList<Update> updates = new ArrayList<Update>();
    //adres lokalnego pliku xml z informacjami o plikach do pobrania
    private File updateFile = new File("UpdateInfo.xml");
    //nazwa logu
    private String logName = "UpdaterLog";
    //separator miedzy plikami
    private String separator = System.getProperty("file.separator")+System.getProperty("file.separator");

    private int available=0;
    private int localAvailable=0;

    public File getUpdateFile()
    {
        return updateFile;
    }

    public String getLogName()
    {
        return logName;
    }

    public int getAvailable()
    {
        return available;
    }

    public int getLocalAvailable()
    {
        return localAvailable;
    }

    public void setLocalAvailable(int available)
    {
        localAvailable = available;
    }

    public void setAvailable(int available)
    {
        this.available = available;
    }

    public void appendLocalAvailable(int available)
    {
        localAvailable += available;
    }

    public void appendAvailable(int available)
    {
        this.available = this.available + available;
    }

    public void appendAllAvailable(int available)
    {
        this.available += available;
        this.localAvailable += available;
    }

    public String getSeparator()
    {
        return separator;
    }
}
